#ifndef TESTDATAMAPPING_H
#define TESTDATAMAPPING_H

#include <QWidget>

#include "structmapping.h"

namespace Ui {
class TestDataMapping;
}

class TestDataMapping : public QWidget {
    Q_OBJECT

public:
    explicit TestDataMapping(QWidget *parent = nullptr);
    ~TestDataMapping();

private slots:
    void on_saveBtn_clicked();

private:
    void setBindings();
    void dumpConfig();

private:
    Ui::TestDataMapping *ui;

    AppConfig    config_{{"192.168.1.1", 8080, false}, {true, 2}, 3.14f};
    StructMapper mapper_{config_};
};

#endif  // TESTDATAMAPPING_H
